package com.lnking.lnkingplace.model.dto.place;

import com.lnking.lnkingplace.Util.DataDesensitizedUtils;
import com.lnking.starter.export.annotation.TableColumn;
import com.lnking.starter.export.annotation.TableInfo;
import lombok.Data;

@Data
@TableInfo(tableName = "场所基本信息")
public class PlaceExportDto {

    @TableColumn(columnName = "所属街道")
    private String street;

    @TableColumn(columnName = "场所名称", column = "1")
    private String placeName;

    @TableColumn(columnName = "场所类型",column = "2")
    private String placeType;

    @TableColumn(columnName = "地址",column = "3")
    private String address;

    @TableColumn(columnName = "联系人",column = "4")
    private String linkman;

    @TableColumn(columnName = "联系人电话",column = "5")
    private String linkmanPhone;

    @TableColumn(columnName = "场所电话",column = "6")
    private String phoneNumber;

    @TableColumn(columnName = "营业时间",column = "7")
    private String openingTime;

    @TableColumn(columnName = "面积",column = "8")
    private String area;

    @TableColumn(columnName = "注册资金",column = "9")
    private Float assets;

    @TableColumn(columnName = "经营范围",column = "10")
    private String businessNature;

    @TableColumn(columnName = "从业人员数量",column = "11")
    private Integer userNum;

    @TableColumn(columnName = "场所注册情况",column = "12")
    private String registerFlag;

    @TableColumn(columnName = "防疫配置（N天一检）",column = "13")
    private String configDay;

    @TableColumn(columnName = "店铺招牌",column = "14")
    private String shopSign;

    public String getLinkmanPhone(){
        return DataDesensitizedUtils.desensitizedPhoneNumber(linkmanPhone);
    }
}
